<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">

<style>
    .addList{
        text-align: center;
    }
    .addList p, .remove{
        cursor:pointer;
        font-size: 16px;
        color: #0e9aef;
        display: inline-block;
    }

    .remove{
        width: 40px;
        position: absolute;
        top: 0;
        right: -50px;
        text-align: center;
    }

    #addParams{
        display: table;
    }

    .parseInset{
      margin-top: 10px;width: 100%;display:table;position: relative
    }
    .taskDesc{
      margin-top: 10px;
    }
    .form-group .col-sm-12{
      box-shadow: none;
    }
</style>

<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
  <div class="row">
    <div class="col-sm-12">
      <div class="ibox float-e-margins">
        <div class="ibox-content">
          <form class="form-horizontal m-t" id="signupForm">

            <div class="form-group">
              <label class="col-sm-3 control-label">模板名称：</label>
              <div class="col-sm-8">
                <input id="moduleName" name="moduleName" class="form-control" type="text" placeholder="请输入模板名称" >
<!--                  th:value="${module.moduleName}"-->
              </div>
            </div>

<!--            <input type="hidden" id="id" th:value="${moduleId.id}">-->

            <div class="form-group">
              <label class="col-sm-3 control-label">所属竞赛：</label>
              <div class="col-sm-8">
                <select id="competitionType" name="competitionType" class="form-control">
                  <option value="">请选择</option>
                  <option value="1"  selected>教师组</option>
                  <option value="2">学生中职组</option>
                  <option value="3">学生高校组</option>
                    <option value="4">国际组</option>
                </select>
<!--                <input type="hidden" id="competitionTypes" th:value="${module.competitionType}">-->
              </div>
            </div>

<!--            <div th:text="${module}"></div>-->

            <div class="form-group">
              <label class="col-sm-3 control-label">选择考试类型：</label>
              <div class="col-sm-8">
<!--                <input type="hidden" id="module" th:value="${module.moduleType}">-->
                <select class="form-control" name="moduleType" id="moduleType">
                  <option value="">请选择</option>
                  <option value="1">理论考试</option>
                  <option value="2">实操考试</option>
                </select>
              </div>
            </div>

            <div class="form-group">
              <label class="col-sm-3 control-label">模板总分：</label>
              <div class="col-sm-8">
                <input id="topicScore" name="topicScore" class="form-control" type="text" placeholder="请输入模板总分" >
<!--                  th:value="${module.totalScore}"-->
              </div>
            </div>

            <div class="addBox">

              <div class="form-group">
                <label class="col-sm-3 control-label">B模板任务：</label>

                <div id="addParams" class="col-sm-8">

<!--                  <div class="templet" th:each="list,iterStat:${module.dispositionTopic}" th:if="${list.type == 'B'}">-->
<!--&lt;!&ndash;                    <div th:text="${iterStat}"></div>&ndash;&gt;-->
<!--                    <div class="parseInset" style="width: 100%;display: table;">-->
<!--                        <div class="taskName col-sm-6" style="padding-left: 0">-->
<!--                          <input name="topicName" class="form-control" type="text" placeholder="请输入名称" th:value="${list.topicName}">-->
<!--                        </div>-->
<!--                        <input type="hidden" class="moduleId" th:value="${list.id}">-->
<!--                        <div class="taskScore col-sm-6" style="padding-left: 0;padding-right: 0">-->
<!--                          <input name="score" class="form-control" type="text" placeholder="请输入分数"  th:value="${list.score}">-->
<!--                        </div>-->
<!--                        <div class="taskDesc col-sm-12" style="padding-left: 0;padding-right: 0">-->
<!--                          <textarea name="description" class="form-control" type="text" placeholder="请输入题目描述"  th:text="${list.description}"></textarea>-->
<!--                        </div>-->
<!--                        <div class="remove">删除</div>-->
<!--                    </div>-->
<!--                    <input type="hidden" th:id="refers+${iterStat.index}" th:value="${list.refereeId}">-->
<!--                    <div th:id="refer+${iterStat.index}" class="judge"></div>-->
<!--                    <input type="hidden" th:id="form+${iterStat.index}" th:value="${list.detailId}">-->
<!--                    <select class="form-control query"></select>-->
<!--                  </div>-->

                </div>

              </div>

              <div class="addList addListB"><p>添加</p></div>

              <div class="form-group">
                <label class="col-sm-3 control-label">C模板任务：</label>

                <div id="addField" class="col-sm-8">

<!--                  <div class="templet" th:each="list,iterStat:${module.dispositionTopic}" th:if="${list.type == 'C'}">-->
<!--                    <div class="parseInset" style="width: 100%;display: table;">-->
<!--                        <div class="taskName col-sm-6" style="padding-left: 0">-->
<!--                          <input name="topicName" class="form-control" type="text" placeholder="请输入名称" th:value="${list.topicName}">-->
<!--                        </div>-->
<!--                        <div class="taskScore col-sm-6" style="padding-left: 0;padding-right: 0">-->
<!--                          <input name="score" class="form-control" type="text" placeholder="请输入分数"  th:value="${list.score}">-->
<!--                        </div>-->
<!--                        <div class="taskDesc col-sm-12" style="padding-left: 0;padding-right: 0">-->
<!--                          <textarea name="description" class="form-control" type="text" placeholder="请输入题目描述"  th:text="${list.description}"></textarea>-->
<!--                        </div>-->
<!--                        <div class="remove">删除</div>-->
<!--                    </div>-->
<!--                    <input type="hidden" th:id="referst+${iterStat.index}" th:value="${list.refereeId}">-->
<!--                    <div th:id="refert+${iterStat.index}" class="judge"></div>-->
<!--                    <input type="hidden" th:id="forms+${iterStat.index}" th:value="${list.detailId}">-->
<!--                    <select class="form-control query"></select>-->
<!--                  </div>-->

                </div>

              </div>

              <div class="addList addListC"><p>添加</p></div>

              <div class="form-group">
                  <div class="col-sm-8 col-sm-offset-3">
                    <button type="button" class="btn btn-primary" id="btn">提交</button>
                  </div>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/xmSelect.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/moduleEntrance/updateModule.js">
</script>
</body>
</html>
